package com.ly.heart.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import com.ly.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.experimental.Accessors;

/**
 * 流程与业务关联对象 erp_act_model_business
 * @author cxl
 * @date 2024-05-29
 */
@TableName ("erp_act_model_business")
@ApiModel (value = "流程与业务关联", description = "流程与业务关联")
@Data
@Accessors(chain = true)
public class ActModelBusinessEntity{

        /** 主键id */
        @TableId (type = IdType.INPUT)
        private String id;

        /** 业务id */
        @ApiModelProperty ("业务id")
        @TableField ("business_id")
        @Excel (name = "业务id")
        private String businessId;

        /** 流程实例id */
        @ApiModelProperty ("流程实例id")
        @TableField ("instance_id")
        @Excel (name = "流程实例id")
        private String instanceId;

        /** 业务类型（0请假 ...） */
        @TableField ("business_type")
        @ApiModelProperty ("业务类型")
        @Excel (name = "业务类型", readConverterExp = "0=请假,.=..")
        private String businessType;

       /** 用户id */
       @ApiModelProperty ("用户id")
       @TableField ("user_id")
       @Excel (name = "用户id")
       private String userId;

        /** 创建时间 */
        @ApiModelProperty ("创建时间")
        @TableField ("create_time")
        @JsonFormat (pattern = "yyyy-MM-dd")
        @Excel (name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
        private Date createTime;

       /** 更新时间 */
       @ApiModelProperty ("更新时间")
       @TableField ("change_time")
       @JsonFormat (pattern = "yyyy-MM-dd")
       @Excel (name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
       private Date changeTime;

       @ApiModelProperty ("逻辑删除")
       @TableField ("is_used")
       @Excel (name = "逻辑删除")
       private Integer isUsed;


}
